package com.atguigu.mailservice.service.impl;

import com.atguigu.mailservice.service.MsmService;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.stereotype.Service;

@Service
public class MsmServiceImpl implements MsmService {

    @Override
    public void send(String userName, String password, String userEmail) {
        SimpleMailMessage mainMessage = new SimpleMailMessage();
        //发送者邮箱
        mainMessage.setFrom("1459324951@qq.com");
        //接收者邮箱
        mainMessage.setTo(userEmail);
        //发送的邮件标题
        mainMessage.setSubject("注册激活");
        //发送的内容
        mainMessage.setText("hello");
        return;
    }
}